package com.ltkj.shop.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ltkj.common.core.annotation.Excel;
import com.ltkj.common.core.web.domain.BaseEntity;

/**
 * 收货地址对象 shop_receive_address
 * 
 * @author xupf
 * @date 2023-08-29
 */
@ApiModel(value = "收货地址")
public class ShopReceiveAddress extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 收货地址id */
    @ApiModelProperty("收货地址id")
    private Long id;

    /** 用户id */
    @ApiModelProperty("用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long userId;

    /** 收货人姓名 */
    @Excel(name = "收货人姓名")
    @ApiModelProperty("收货人姓名")
    private String name;

    /** 收货人手机号 */
    @Excel(name = "收货人手机号")
    @ApiModelProperty("收货人手机号")
    private String phone;

    /** 省名称 */
    @Excel(name = "省名称")
    @ApiModelProperty("省名称")
    private String provinceName;

    /** 市名称 */
    @Excel(name = "市名称")
    @ApiModelProperty("市名称")
    private String cityName;

    /** 区/县名称 */
    @Excel(name = "区/县名称")
    @ApiModelProperty("区/县名称")
    private String countyName;

    /** 省-编码 */
    @ApiModelProperty("省-编码")
    private String province;

    /** 市-编码 */
    @ApiModelProperty("市-编码")
    private String city;

    /** 区/县-编码 */
    @ApiModelProperty("区/县-编码")
    private String county;

    /** 街道 */
    @ApiModelProperty("街道")
    private String street;

    /** 详细地址 */
    @ApiModelProperty("详细地址")
    private String address;

    /** 是否默认（0否 1是） */
    @Excel(name = "是否默认", readConverterExp = "0=否,1=是")
    @ApiModelProperty("是否默认（0否 1是）")
    private String isDefault;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setProvinceName(String provinceName) 
    {
        this.provinceName = provinceName;
    }

    public String getProvinceName() 
    {
        return provinceName;
    }
    public void setCityName(String cityName) 
    {
        this.cityName = cityName;
    }

    public String getCityName() 
    {
        return cityName;
    }
    public void setCountyName(String countyName) 
    {
        this.countyName = countyName;
    }

    public String getCountyName() 
    {
        return countyName;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }
    public void setCounty(String county) 
    {
        this.county = county;
    }

    public String getCounty() 
    {
        return county;
    }
    public void setStreet(String street) 
    {
        this.street = street;
    }

    public String getStreet() 
    {
        return street;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setIsDefault(String isDefault) 
    {
        this.isDefault = isDefault;
    }

    public String getIsDefault() 
    {
        return isDefault;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("phone", getPhone())
            .append("provinceName", getProvinceName())
            .append("cityName", getCityName())
            .append("countyName", getCountyName())
            .append("province", getProvince())
            .append("city", getCity())
            .append("county", getCounty())
            .append("street", getStreet())
            .append("address", getAddress())
            .append("isDefault", getIsDefault())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
